package ${packPath}.entity;

<#if containsPk=="true">
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
</#if>
import com.baomidou.mybatisplus.annotation.TableName;
<#if containsDate=="true">
import com.fasterxml.jackson.annotation.JsonFormat;
</#if>
<#if swagger=="true" >
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
</#if>
import lombok.Data;

import java.io.Serializable;
<#list pkgs as ps>
	<#if ps??>
import ${ps};
	</#if>
</#list>

/**
 * <p>
 * ${entityName}实体类
 * </p>
 * 
 * @author ${author}
 * @date ${date}
 */
@Data
@TableName("${tableName}")
<#if swagger=="true" >
@ApiModel(value="${tableName}对象")
</#if>
public class ${entityName} implements Serializable {

	private static final long serialVersionUID = 1L;
	
<#list cis as ci>
 <#if ci.javaType=="Date">
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
 </#if>
 <#if ci.property==pk>
	@TableId(value = "id", type = IdType.ASSIGN_ID)
 </#if>
 <#if swagger=="true" >
	@ApiModelProperty(name = "${ci.property}" , value = "${ci.comment}")
 </#if>
	private ${ci.javaType} ${ci.property};

</#list>
}
	